#include<iostream>
using namespace std;

int main(int argc, char* argv[], char* envp[])
{
  cout << "现在传入的有效元素数为：" << argc << endl;
  cout << "==========================" << endl;
  cout << "通过元素表打元素信息" << endl;
  int pos = 0;
  while(pos < argc)
  {
    cout << argv[pos] << endl;
    pos++;
  }
  cout << "==========================" << endl;
  cout << "使用环境变量表获取前五个环境变量信息" << endl;
  pos = 0;
  while(pos < 5)
  {
    cout << envp[pos] << endl;
    pos++;
  }
  
  return 0;
}

